package com.kgc.travel.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ExcStuExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ExcStuExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExcIdIsNull() {
            addCriterion("exc_id is null");
            return (Criteria) this;
        }

        public Criteria andExcIdIsNotNull() {
            addCriterion("exc_id is not null");
            return (Criteria) this;
        }

        public Criteria andExcIdEqualTo(Long value) {
            addCriterion("exc_id =", value, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdNotEqualTo(Long value) {
            addCriterion("exc_id <>", value, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdGreaterThan(Long value) {
            addCriterion("exc_id >", value, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdGreaterThanOrEqualTo(Long value) {
            addCriterion("exc_id >=", value, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdLessThan(Long value) {
            addCriterion("exc_id <", value, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdLessThanOrEqualTo(Long value) {
            addCriterion("exc_id <=", value, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdIn(List<Long> values) {
            addCriterion("exc_id in", values, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdNotIn(List<Long> values) {
            addCriterion("exc_id not in", values, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdBetween(Long value1, Long value2) {
            addCriterion("exc_id between", value1, value2, "excId");
            return (Criteria) this;
        }

        public Criteria andExcIdNotBetween(Long value1, Long value2) {
            addCriterion("exc_id not between", value1, value2, "excId");
            return (Criteria) this;
        }

        public Criteria andStuIdIsNull() {
            addCriterion("stu_id is null");
            return (Criteria) this;
        }

        public Criteria andStuIdIsNotNull() {
            addCriterion("stu_id is not null");
            return (Criteria) this;
        }

        public Criteria andStuIdEqualTo(Long value) {
            addCriterion("stu_id =", value, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdNotEqualTo(Long value) {
            addCriterion("stu_id <>", value, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdGreaterThan(Long value) {
            addCriterion("stu_id >", value, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdGreaterThanOrEqualTo(Long value) {
            addCriterion("stu_id >=", value, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdLessThan(Long value) {
            addCriterion("stu_id <", value, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdLessThanOrEqualTo(Long value) {
            addCriterion("stu_id <=", value, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdIn(List<Long> values) {
            addCriterion("stu_id in", values, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdNotIn(List<Long> values) {
            addCriterion("stu_id not in", values, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdBetween(Long value1, Long value2) {
            addCriterion("stu_id between", value1, value2, "stuId");
            return (Criteria) this;
        }

        public Criteria andStuIdNotBetween(Long value1, Long value2) {
            addCriterion("stu_id not between", value1, value2, "stuId");
            return (Criteria) this;
        }

        public Criteria andExcStatusIsNull() {
            addCriterion("exc_status is null");
            return (Criteria) this;
        }

        public Criteria andExcStatusIsNotNull() {
            addCriterion("exc_status is not null");
            return (Criteria) this;
        }

        public Criteria andExcStatusEqualTo(String value) {
            addCriterion("exc_status =", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusNotEqualTo(String value) {
            addCriterion("exc_status <>", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusGreaterThan(String value) {
            addCriterion("exc_status >", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusGreaterThanOrEqualTo(String value) {
            addCriterion("exc_status >=", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusLessThan(String value) {
            addCriterion("exc_status <", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusLessThanOrEqualTo(String value) {
            addCriterion("exc_status <=", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusLike(String value) {
            addCriterion("exc_status like", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusNotLike(String value) {
            addCriterion("exc_status not like", value, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusIn(List<String> values) {
            addCriterion("exc_status in", values, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusNotIn(List<String> values) {
            addCriterion("exc_status not in", values, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusBetween(String value1, String value2) {
            addCriterion("exc_status between", value1, value2, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcStatusNotBetween(String value1, String value2) {
            addCriterion("exc_status not between", value1, value2, "excStatus");
            return (Criteria) this;
        }

        public Criteria andExcReasonIsNull() {
            addCriterion("exc_reason is null");
            return (Criteria) this;
        }

        public Criteria andExcReasonIsNotNull() {
            addCriterion("exc_reason is not null");
            return (Criteria) this;
        }

        public Criteria andExcReasonEqualTo(String value) {
            addCriterion("exc_reason =", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonNotEqualTo(String value) {
            addCriterion("exc_reason <>", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonGreaterThan(String value) {
            addCriterion("exc_reason >", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonGreaterThanOrEqualTo(String value) {
            addCriterion("exc_reason >=", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonLessThan(String value) {
            addCriterion("exc_reason <", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonLessThanOrEqualTo(String value) {
            addCriterion("exc_reason <=", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonLike(String value) {
            addCriterion("exc_reason like", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonNotLike(String value) {
            addCriterion("exc_reason not like", value, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonIn(List<String> values) {
            addCriterion("exc_reason in", values, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonNotIn(List<String> values) {
            addCriterion("exc_reason not in", values, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonBetween(String value1, String value2) {
            addCriterion("exc_reason between", value1, value2, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcReasonNotBetween(String value1, String value2) {
            addCriterion("exc_reason not between", value1, value2, "excReason");
            return (Criteria) this;
        }

        public Criteria andExcPictureIsNull() {
            addCriterion("exc_picture is null");
            return (Criteria) this;
        }

        public Criteria andExcPictureIsNotNull() {
            addCriterion("exc_picture is not null");
            return (Criteria) this;
        }

        public Criteria andExcPictureEqualTo(String value) {
            addCriterion("exc_picture =", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureNotEqualTo(String value) {
            addCriterion("exc_picture <>", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureGreaterThan(String value) {
            addCriterion("exc_picture >", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureGreaterThanOrEqualTo(String value) {
            addCriterion("exc_picture >=", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureLessThan(String value) {
            addCriterion("exc_picture <", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureLessThanOrEqualTo(String value) {
            addCriterion("exc_picture <=", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureLike(String value) {
            addCriterion("exc_picture like", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureNotLike(String value) {
            addCriterion("exc_picture not like", value, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureIn(List<String> values) {
            addCriterion("exc_picture in", values, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureNotIn(List<String> values) {
            addCriterion("exc_picture not in", values, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureBetween(String value1, String value2) {
            addCriterion("exc_picture between", value1, value2, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcPictureNotBetween(String value1, String value2) {
            addCriterion("exc_picture not between", value1, value2, "excPicture");
            return (Criteria) this;
        }

        public Criteria andExcCreateIsNull() {
            addCriterion("exc_create is null");
            return (Criteria) this;
        }

        public Criteria andExcCreateIsNotNull() {
            addCriterion("exc_create is not null");
            return (Criteria) this;
        }

        public Criteria andExcCreateEqualTo(Date value) {
            addCriterion("exc_create =", value, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateNotEqualTo(Date value) {
            addCriterion("exc_create <>", value, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateGreaterThan(Date value) {
            addCriterion("exc_create >", value, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("exc_create >=", value, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateLessThan(Date value) {
            addCriterion("exc_create <", value, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateLessThanOrEqualTo(Date value) {
            addCriterion("exc_create <=", value, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateIn(List<Date> values) {
            addCriterion("exc_create in", values, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateNotIn(List<Date> values) {
            addCriterion("exc_create not in", values, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateBetween(Date value1, Date value2) {
            addCriterion("exc_create between", value1, value2, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcCreateNotBetween(Date value1, Date value2) {
            addCriterion("exc_create not between", value1, value2, "excCreate");
            return (Criteria) this;
        }

        public Criteria andExcModifiedIsNull() {
            addCriterion("exc_modified is null");
            return (Criteria) this;
        }

        public Criteria andExcModifiedIsNotNull() {
            addCriterion("exc_modified is not null");
            return (Criteria) this;
        }

        public Criteria andExcModifiedEqualTo(Date value) {
            addCriterion("exc_modified =", value, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedNotEqualTo(Date value) {
            addCriterion("exc_modified <>", value, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedGreaterThan(Date value) {
            addCriterion("exc_modified >", value, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("exc_modified >=", value, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedLessThan(Date value) {
            addCriterion("exc_modified <", value, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedLessThanOrEqualTo(Date value) {
            addCriterion("exc_modified <=", value, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedIn(List<Date> values) {
            addCriterion("exc_modified in", values, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedNotIn(List<Date> values) {
            addCriterion("exc_modified not in", values, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedBetween(Date value1, Date value2) {
            addCriterion("exc_modified between", value1, value2, "excModified");
            return (Criteria) this;
        }

        public Criteria andExcModifiedNotBetween(Date value1, Date value2) {
            addCriterion("exc_modified not between", value1, value2, "excModified");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}